package cn.fanyamin.group;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jgroups.Address;
import org.jgroups.blocks.NotificationBus.Consumer;


public class NotificationConsumer implements Consumer {
    private static Log logger = LogFactory.getLog(NotificationConsumer.class);
    
    @Override
    public Serializable getCache() {
        logger.info("getCache " + new Date());
        return null;
    }

    @Override
    public void handleNotification(Serializable arg0) {
        logger.info("handleNotification " + arg0);
        
    }

    @Override
    public void memberJoined(Address arg0) {
        logger.info("memberJoined " + arg0);
        
    }

    @Override
    public void memberLeft(Address arg0) {
        logger.info("memberLeft " + arg0);
        
    }

}
